﻿using System;
using System.Collections.Generic;
using System.Text;

namespace fly
{
    class vehicle
    {
        protected int num;
        protected string name;

        public vehicle(int num,string name)
        {
            this.num = num;
            this.name = name;
        }

        public virtual void run()
        {
            Console.WriteLine("车在跑");
        }
        public void print()
        {
            Console.WriteLine("编号为"+num);
            Console.WriteLine("名字为" + name);

        }
    }
}
